#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .appointmentInfoResource import appointmentinfo_blueprint
from .verifyMailResource import verifymail_blueprint
from .userCounselorResource import usercounselor_blueprint
from .articleResource import article_blueprint
from .testOptionResource import testoption_blueprint
from .testRecordResource import testrecord_blueprint
from .userClientResource import userclient_blueprint
from .messageResource import message_blueprint
from .scheduleResource import schedule_blueprint
from .sysAdminResource import sysadmin_blueprint
from .noticeResource import notice_blueprint
from .questionAnswerResource import questionanswer_blueprint
from .ssoUserResource import ssouser_blueprint
from .rotationpicResource import rotationpic_blueprint
from .testResource import test_blueprint
from .testQuestionResource import testquestion_blueprint
from .verifyCodeResource import verifycode_blueprint
from .verifyMobileResource import verifymobile_blueprint


def init_router(app):
    from api.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api")

    # appointmentInfo blueprint register
    from api.appointmentInfoResource import appointmentinfo_blueprint
    app.register_blueprint(appointmentinfo_blueprint, url_prefix="/api")
    
    # verifyMail blueprint register
    from api.verifyMailResource import verifymail_blueprint
    app.register_blueprint(verifymail_blueprint, url_prefix="/api")
    
    # userCounselor blueprint register
    from api.userCounselorResource import usercounselor_blueprint
    app.register_blueprint(usercounselor_blueprint, url_prefix="/api")
    
    # article blueprint register
    from api.articleResource import article_blueprint
    app.register_blueprint(article_blueprint, url_prefix="/api")
    
    # testOption blueprint register
    from api.testOptionResource import testoption_blueprint
    app.register_blueprint(testoption_blueprint, url_prefix="/api")
    
    # testRecord blueprint register
    from api.testRecordResource import testrecord_blueprint
    app.register_blueprint(testrecord_blueprint, url_prefix="/api")
    
    # userClient blueprint register
    from api.userClientResource import userclient_blueprint
    app.register_blueprint(userclient_blueprint, url_prefix="/api")
    
    # message blueprint register
    from api.messageResource import message_blueprint
    app.register_blueprint(message_blueprint, url_prefix="/api")
    
    # schedule blueprint register
    from api.scheduleResource import schedule_blueprint
    app.register_blueprint(schedule_blueprint, url_prefix="/api")
    
    # sysAdmin blueprint register
    from api.sysAdminResource import sysadmin_blueprint
    app.register_blueprint(sysadmin_blueprint, url_prefix="/api")
    
    # notice blueprint register
    from api.noticeResource import notice_blueprint
    app.register_blueprint(notice_blueprint, url_prefix="/api")
    
    # questionAnswer blueprint register
    from api.questionAnswerResource import questionanswer_blueprint
    app.register_blueprint(questionanswer_blueprint, url_prefix="/api")
    
    # ssoUser blueprint register
    from api.ssoUserResource import ssouser_blueprint
    app.register_blueprint(ssouser_blueprint, url_prefix="/api")
    
    # rotationpic blueprint register
    from api.rotationpicResource import rotationpic_blueprint
    app.register_blueprint(rotationpic_blueprint, url_prefix="/api")
    
    # test blueprint register
    from api.testResource import test_blueprint
    app.register_blueprint(test_blueprint, url_prefix="/api")
    
    # testQuestion blueprint register
    from api.testQuestionResource import testquestion_blueprint
    app.register_blueprint(testquestion_blueprint, url_prefix="/api")
    
    # verifyCode blueprint register
    from api.verifyCodeResource import verifycode_blueprint
    app.register_blueprint(verifycode_blueprint, url_prefix="/api")
    
    # verifyMobile blueprint register
    from api.verifyMobileResource import verifymobile_blueprint
    app.register_blueprint(verifymobile_blueprint, url_prefix="/api")
    
